<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Rep\MaintainRep;
use Illuminate\Http\Request;

class Maintain extends Controller
{
    //维修库
    protected $rep;

    public function __construct(Request $request)
    {
        $this->rep = new MaintainRep();
    }

    /**
     * 获取维修库列表
     * @return void
     */
    public function getMaintainList(Request $request){
        $params = $request->all();
        $data = $this->rep->getMaintainListRep($params);
        return re(0,$data,'success');
    }

}
